<link rel="stylesheet" href="../core/resource/weui/weui.css?v=12">
<style>
.queue-state-section .queue-state-items .queue-state-wait-num{font-weight:700;padding:10px;font-size:18px}
.queue-state-section .queue-state-items .guest-num{padding:25px 10px;font-size:50px;line-height:70px;font-weight:700;text-align:center}
.queue-state-section .queue-state-items .current-queue-setting-state{font-size:18px;line-height:1.5em;padding:10px}
.label-gray{background-color:#959595!important;color:#fff!important;border-color:#959595}
.label-orange{background-color:orange!important;color:#fff!important;border-color:orange}
</style>
<div class='fui-page-group' ng-if="pagedata.op == 'main'">
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">用餐排号</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page navbar'>
		<div class="queue-state-section section" ng-if="pagedata.show == 1">
                <div class="queue-state-items">
                    <div class="queue-state-wait-num">
                        还需等待 <span style="font-size:24px" class="ng-binding">{{pagedata.queue_num}}</span> 桌，您的号码是
                    </div>
                    <div class="guest-num ng-binding">
                       {{pagedata.myquhao.number}}
                    </div>
                    <div class="current-queue-setting-state label-orange ng-binding">
                        <i class="fa fa-dot-circle-o"></i> {{pagedata.myquhao.queuename}}，已叫号至{{pagedata.myquhao.pre}}{{pagedata.nowmember.number || '000'}}
                    </div>
                    <div style="height: 20px;"></div>
                </div>
         </div>
		 <div class="content-empty" ng-if="pagedata.show == 0">
				  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您还没有取号！</p>
		</div>
		<div class="fui-icon-group noborder col-2" style="background-color: #fff;">
						<div class="fui-icon-col external" href="javascript:;" ng-click="access_json('main')">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-yuding" style="color:#f60"></i></div>
							<div class="text">刷新状态</div>
						</div>
						<div class="fui-icon-col external" href="javascript:;" data-toggle="modal" data-target="#selectnum">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-paihao0" style="color:#f60"></i></div>
							<div class="text">我要取号</div>
						</div>
		</div>
		<div class="weui_cells">
			<div class="weui_cell" style="padding:0px 15px">
                <div class="weui_cell_bd weui_cell_primary orange">
                    <span>餐桌列表</span>
                </div>
            </div>
			<div class="weui_cell_good">
				<div class="row" style="margin:0 10px">
					<div class="jy-3" ng-repeat="q in pagedata.queues">
							<div class="yuyue-duan" style="width:auto;margin-top:0;color:#19b955">
								<div>{{q.title}}</div>
								<div class="clear"></div>
							</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<div id="selectnum" class="modal fade" tabindex="-1" style="z-index: 99999; display: none;">
	<div class="modal-dialog" style="width:90%;bottom:10%;left:5%;">
	<div class="modal-content" style="border-radius: 4px;padding-bottom:1rem">
		<div aria-hidden="true" data-dismiss="modal" class="closebtn"><i class="icon jinyunicon icon-wrong"></i></div>
		<div class="fui-line" style="width:6rem;margin:0.5rem auto 0 auto">
			<div class="text text-danger" style="background-color:#fff" >取号</div>
		</div>
		<div class="weui_cells weui_cells_form">
					  <div class="weui_cell weui_vcode">
						<div class="weui_cell_hd"><label class="weui_label">用餐人数</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" ng-model="pagedata.item.num" placeholder="请输入用餐人数">
						</div>
					</div>
		</div>
		<div class="weui_btn_area">
			 <a class="weui_btn weui_btn_primary" href="javascript:" ng-click="post(pagedata.item,'set')" aria-hidden="true" data-dismiss="modal">提交</a>
		</div>
	</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>